package com.stone.design.practice.customview.practice;

import android.content.Context;
import android.support.annotation.Nullable;
import android.util.AttributeSet;
import android.util.Log;
import android.view.MotionEvent;
import android.widget.LinearLayout;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 6/22/18 14:01
 * @email redsstone@163.com
 */
public class MyLinearLayout extends LinearLayout{
    public MyLinearLayout(Context context) {
        super(context);
    }

    public MyLinearLayout(Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public MyLinearLayout(Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        Log.e("Stone", "onTouchEvent(MyLinearLayout.java:31)-->>"+event.getAction());
        return super.onTouchEvent(event);
    }

    @Override
    public boolean dispatchTouchEvent(MotionEvent ev) {
        Log.e("Stone", "dispatchTouchEvent(MyLinearLayout.java:38)-->>"+ev.getAction());

        boolean is = super.dispatchTouchEvent(ev);
        Log.e("Stone", "dispatchTouchEvent(MyLinearLayout.java:41)-->>"+is);
        return is;
    }


}
